
package com.lemon.cloud.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author huangds
 * @date 2019/2/1
 */
@Data
public class UserDTO {

    /**
     * 角色ID
     */
    @Schema(description = "角色ID集")
    private List<Long> role;

    @Schema(description = "部门id")
    private Long deptId;

    /**
     * 岗位ID
     */
    @Schema(description = "岗位ID")
    private List<Long> post;
    /**
     * 组织
     */
    @Schema(description = "组织集")
    private List<Long> org;

    /**
     * 新密码
     */
    @Schema(description = "新密码")
    private String newpassword1;

    private Long id;

    @Length(message = "用户名长度为1~10字符",min = 1,max = 10)
    @NotEmpty(message = "用户名不能为空")
    @Schema(description = "用户名")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "手机号")
    @NotEmpty(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "邮件")
    private String email;

    private Integer status;

    @Schema(description = "客户端id")
    private String client;

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "生日")
    private String birthday;

    @Schema(description = "省份")
    private String province;
}
